package com.oceansoft.mobile.econsole.modules.message.persistence;

import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import com.oceansoft.mobile.econsole.modules.message.entity.PushMessage;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: zxh
 * @time: 14-5-6 下午4:34
 */
@Repository
public interface IMessageMapper {

    public void add(PushMessage message);

    public List<PushMessage> loadPageByCondition(Query query);

    public List<PushMessage> findUnsendMsg();

    public PushMessage findMsgById(int msgId);

    public void updateMsgSendStatus(List<Integer> ids);
}
